/**
 * 项目示例-列表表头
 * Date 2023-5-25 09:33:56
 * 可选参数可参考：https://element-plus.org/zh-CN/component/table.html#table-column-属性
 */
interface ExampleListItem {
  houseName: string;
  houseType: string;
  houseCode: string;
  num: string;
  area: string;
  price: string;
  rent: string;
  region: string;
  organNames: string;
  condition: string;
  nature: string;
  ability: string;
  maintainLimit: string;
  dutyOrganName: string;
  linkUserName: string;
  linkPhone: string;
  floor: string;
  coordinate: string;
  lastUpdateTime: string;
}

export const mapListColumns = [
  { type: 'index', label: '序号',  width: 60, align: 'center' },
  {
    prop: 'unitNumber', label: '单位编号', width: 160, align: 'center', ellipsis: true
  },
  {
    prop: 'unitName', label: '单位名称', width: 160, align: 'center', ellipsis: true
  },
  {
    prop: 'unitTemplateName', label: '单位模板名称', width: 160, align: 'center', ellipsis: true
  },
  {
    prop: 'unitType', label: '单位类型', width: 160, align: 'center', ellipsis: true
  },
  {
    prop: 'roomNumber', label: '驻场房间编号', width: 160, align: 'center', ellipsis: true
  },
  {
    prop: 'creatTime',
    label: '创建时间',
    sortable: true,
    width: 210,
    align: 'center',
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (cellValue) {
        return cellValue
      } else {
        return '-'
      }
    }
  },
  {
    prop: 'headName', label: '负责人姓名', width: 160, align: 'center', ellipsis: true
  },
  {
    prop: 'headPhone', label: '负责人电话', width: 145, align: 'center', ellipsis: true
  },
  {
    prop: 'action', label: '操作', fixed: 'right', width: 230, align: 'center'
  }
]
